package utils

import "github.com/gin-gonic/gin"

func OkResult(c *gin.Context, data interface{}) {
	c.JSON(200, gin.H{
		"code":    200,
		"data":    data,
		"message": "success",
	})
}

func FailResult(c *gin.Context, code string, message string) {
	c.JSON(500, gin.H{
		"code":    code,
		"message": message,
	})
}
